﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace GradeManager.classes
{
    public class Student : Person
    {
        public Student(string ID, string password)
        {
            this.ID = ID;
            this.password = password;
        }
        public int getGrade(string courseID)
        {
            for (int i = 0; i < MainPage.scoreList.Count; i++)
            {
                if (MainPage.scoreList[i].courseID == courseID && MainPage.scoreList[i].studentID == ID)
                {
                    return MainPage.scoreList[i].grade;
                }
            }
            return int.MinValue;
        }
    }
}
